/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MonsterType;

import Core.Vector2;
import Environment.Gravity;
import FlyingType.FireBullet;
import Thing.Monster;
import javax.microedition.lcdui.game.Sprite;

/**
 *
 * @author DELL
 */
public class Dragon extends Monster{
    
    //private int[] goRight = {0,0,0,0,1,1,1,1,2,2,2,2};
    
    public Dragon()
    {
        super();
    }
    
    public Dragon(String pathImage, int frameWidth, int frameHeight, int[] rightSeq, int[] shootSeq, Thing.Character h)
    {
        super(pathImage,frameWidth,frameHeight,rightSeq,shootSeq,h);
        MAX_RANGE = 500;
        health = 200;
        damage = 70;
        armor = 3;
    }
    
    public void setTransform(int type)
    {
        this.sprite.setTransform(type);
    }
    
    public void update()
    {       
        
        
        
        super.update();
        
    }
    
    public void Shoot(Vector2 direction)
    {
        if(fly == null)
        {
            int[] seq = {9,9,9,9,8,8,8,8,7,7,7,7};
            fly = new FireBullet(seq);
            //fly.setTransForm(Sprite.TRANS_ROT180);
        }
        super.Shoot(direction);
    }
}
